<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
</head>
<body>



</body>
</html>
<script>

//    <!--构造函数-->

        function Ming(name,age,sex,bfriend,bfHave,bfSay){
            this.name=name,
            this.age=age,
            this.sex=sex,
            this.bfriend=bfriend,
            this.bfHave=bfHave,
            this.bfSay=bfSay,
            alert("我叫"+this.name+",今年"+this.age+"性别"+this.sex+",我有一个"+this.bfriend+",我的"+this.bfHave+",他说"+this.bfSay)
        }
        var xM = new Ming("小明","18岁","男","男朋友","男朋友会说话","哈哈哈");




//工厂函数


        function car(bool,price,shuoMing){
            var obj = new Object();
                obj.bool=bool,
                obj.price=price,
                obj.shuoMing=shuoMing,
                obj.say=function(){
                    alert("合格证"+obj.bool+"建议零售价"+obj.price+"说明书"+obj.shuoMing)
                }
            return obj;
        };
        var car1 = car("合格","45624","合成符身材哦啊覅偶");
        car1.say()

</script>